package com.lcy.web.service.render;

import com.lcy.web.service.base.BaseService;
import com.lcy.web.utils.CommonUtils;

/**
 * Created by loucunyin on 2017/1/11 0011.
 */
public class ViewRender implements MyRender{
    private BaseService mService;
    private String mView;
    private String mErrorView;

    public ViewRender(BaseService service, String view) {
        this(service,view,null);
    }

    public ViewRender(BaseService service, String view, String errorView) {
        mService = service;
        mView = view;
        mErrorView = errorView;
    }

    @Override
    public void render() {

    }

    @Override
    public void renderError() {
        if (!CommonUtils.checkString(mErrorView)){
            render();
        }
    }
}
